<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS属性扩展-设置初始页面样式</title>
    <style>
        /* 清除默认样式 */
        body,div,p,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,ddth,input{
            margin: 0;
            padding: 0;
        }
        ul,ol{
            list-style: none;
        }
        h1,h2,h3,h4,h5,h6{
            font-weight: normal;
            font-size: 100%;
        }
        /* 设置初始页面样式 */
        body{
            color: #333;
            font-size: 14px;
            font-family: '微软雅黑','宋体','Arial';            
        }
        a{
            text-decoration: none;
            color: #333;
        }
        /* 自定义布局 */
        div.header{
            width: 500px;
            height: 35px;
        }
        li{
            width: 99px;
            line-height: 35px;
            float: left;
            background-color: gold;
            color: navy;
            border-right: 1px solid #fff;
            text-align: center;
        }
    </style>
</head>
<body>
    <div>
        <div class="header">
            <ul>
                <li><a href="#">首页</a></li>             
                <li><a href="#">新闻</a></li>
                <li><a href="#">体育</a></li>
                <li><a href="#">科技</a></li>
                <li><a href="#">娱乐</a></li>
            </ul>
        </div>
    </div>
</body>
</html>